time= os.time()
--print(time, type(time))

date = os.date("%Y-%m-%d %H:%M:%S",1646189906)
date1 = os.date("%Y-%m-%d %H:%M:00",(1646189906/60)*60)
--print(date, type(date))
--print(date1, type(date1))

function split(str, delimiter)
    local strlist, tmp = {}, string.byte(delimiter)
    if delimiter and delimiter == "" then
        for i = 1, #str do strlist[i] = str:sub(i, i) end
    elseif type(delimiter) == "number" then
        for i = 1, #str, delimiter do table.insert(strlist, str:sub(i, i + delimiter - 1)) end
    else
        for substr in string.gmatch(str .. delimiter, "(.-)" .. (((tmp > 96 and tmp < 123) or (tmp > 64 and tmp < 91) or (tmp > 47 and tmp < 58)) and delimiter or "%" .. delimiter)) do
            table.insert(strlist, substr)
        end
    end
    return strlist
end
local str = "Q=17.58L/S M=20188058"
local arr = split(str," ")
print(arr[2])